﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="FeedContentList.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.Feed.FeedContentList" %>
<%@ Register Assembly="NCS.Library" Namespace="NCS.Library.Controls"
    TagPrefix="cc1" %>
<%@ Register Src="../UserControls/SelectDate.ascx" TagName="SelectDate" TagPrefix="uc1" %>
<table id="Table1" align="center" cellpadding="3" cellspacing="0" width="100%">
    <tr>
        <td>
            <b>Chuyên mục</b></td>
        <td>
            <asp:DropDownList ID="dropZones" DataTextField="Name" DataValueField="ID" runat="server" AutoPostBack="false" Width="480px">
            </asp:DropDownList></td>
    </tr>
    <tr>
        <td colspan="2">
            Từ khóa tìm kiếm&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtkeysearch" runat="server"
                Width="395px"></asp:TextBox>
            &nbsp;<asp:CheckBox ID="chkdeploy" runat="server" Text="Xem các bài đã được up lên" />
        </td>
    </tr>
    <tr>
        <td align="right">
            từ ngày&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        <td>
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td valign="top">
                        <uc1:selectdate id="SelectDate1" runat="server"></uc1:selectdate>
                    </td>
                    <td valign="top">
                        &nbsp;đến ngày&nbsp;</td>
                    <td valign="top">
                        <uc1:selectdate id="SelectDate2" runat="server"></uc1:selectdate>
                    </td>
                    <td style="padding-left: 20px;">
                        <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="Button" OnClick="btnSearch_Click" /></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <cc1:GridView ID="dtgContentList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                PageSize="20" Width="100%" OnRowDataBound="dtgContentList_RowDataBound" OnRowCommand="dtgContentList_RowCommand">
                <AlternatingRowStyle CssClass="Grid_Raw2" />
                <RowStyle CssClass="Grid_Raw1" />
                <PagerStyle CssClass="Grid_Raw1" HorizontalAlign="center" />
                <HeaderStyle Font-Bold="True" CssClass="Grid_Top"></HeaderStyle>
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" >
                        <headerstyle width="5%" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="T&#234;n b&#224;i">
                        <itemtemplate>
							        <asp:HyperLink ID="lnkHeadline" runat="server"></asp:HyperLink>
						        
</itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField
                        HeaderText="Thao t&#225;c">
                        <itemstyle horizontalalign="Center" />
                        <headerstyle horizontalalign="Center" width="150px" />
                        <itemtemplate>
							        
								    <asp:Button ID="Button2" runat="server" CommandArgument='<%# Eval("ID") %>' CommandName="edit" CssClass="Button" Text="Sửa" />
								    <asp:Button ID="cmdDel" runat="server" CommandArgument='<%# Eval("ID") %>'
								        CommandName="deletecontent" CssClass="Button" Text="Xóa" />							       
						        
</itemtemplate>
                    </asp:TemplateField>
                </Columns>                
            </cc1:GridView>              
        </td>
    </tr>
</table>
